import request from '@/utils/request'

// 查询商品评价回复管理列表
export function listCommodityReply(query) {
  return request({
    url: '/shopping/commodityReply/list',
    method: 'get',
    params: query
  })
}

// 查询商品评价回复管理详细
export function getCommodityReply(id) {
  return request({
    url: '/shopping/commodityReply/' + id,
    method: 'get'
  })
}

// 新增商品评价回复管理
export function addCommodityReply(data) {
  return request({
    url: '/shopping/commodityReply',
    method: 'post',
    data: data
  })
}

// 修改商品评价回复管理
export function updateCommodityReply(data) {
  return request({
    url: '/shopping/commodityReply',
    method: 'put',
    data: data
  })
}

// 删除商品评价回复管理
export function delCommodityReply(id) {
  return request({
    url: '/shopping/commodityReply/' + id,
    method: 'delete'
  })
}
// 回复审核功能
export function auditToYes(id) {
  return request({
    url: '/shopping/commodityReply/auditToYes/' + id,
    method: 'put'
  })
}
export function auditToNo(id) {
  return request({
    url: '/shopping/commodityReply/auditToNo/' + id,
    method: 'put'
  })
}
